package edu.nf.meituan.model.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.nf.db.util.Column;

import java.time.LocalDateTime;

/***
 * 地址实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Address {
    /**
     * 地址id
     */
    @Column("address_id")
    private Integer addressId;
    /**
     * 用户id
     */
    @Column("user_id")
    private Integer userId;
    /**
     * 收货人姓名
     */
    @Column("address_name")
    private String addressName;
    /**
     * 收获人手机号
     */
    @Column("address_phone")
    private String addressPhone;
    /**
     * 省份
     */
    @Column("province")
    private String province;
    /**
     * 城市
     */
    @Column("city")
    private String city;
    /**
     * 县区
     */
    @Column("district")
    private String district;
    /**
     * 详细地址
     */
    @Column("detail")
    private String detail;
    /**
     * 设置默认地址状态
     */
    @Column("is_default")
    private Integer isDefault;
    /**
     * 创建时间
     */
    @Column("create_at")
    private LocalDateTime createdAt;
}
